﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Page.Master" AutoEventWireup="true" CodeBehind="AddpolicyOnEMP.aspx.cs" Inherits="HealthInsuranceMgm.Admin.AddpolicyOnEMP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
     <script src="../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <link href="../Styles/styleJs.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript">
       $(document).ready(function () {
           $("#frmAddpoemp").validate({
               errorElement: "span"
           });

       });
    </script>
<form id="frmAddpoemp" runat="server">
    <fieldset>
        <legend><h3>Add Policy On Employee</h3></legend>
        <table>
            <tr>
                <td>Employee Id:</td>
                 <td>
                     <asp:TextBox ID="txtempid" CssClass="required" runat="server"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Policy Id:</td>
                 <td>
                     <asp:DropDownList ID="ddlpolicyid" runat="server" AutoPostBack="True" 
                         ondatabinding="ddlpolicyid_TextChanged" 
                         onselectedindexchanged="ddlpolicyid_SelectedIndexChanged" 
                         ontextchanged="ddlpolicyid_TextChanged">
                     </asp:DropDownList>
                 </td>
            </tr>
             <tr>
                <td>Policy Name:</td>
                 <td><asp:TextBox ID="txtpolicyname" CssClass="required" runat="server" 
                         AutoPostBack="True" ReadOnly="True" ViewStateMode="Enabled"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Policy Amount:</td>
                 <td><asp:TextBox ID="txtpolicyamount" CssClass="required number" runat="server" Width="191px"></asp:TextBox></td>
            </tr>
              <tr>
                <td>Policy EMI:</td>
                 
                     <td><asp:TextBox ID="txtpolicyemi" CssClass="required number" runat="server" Width="191px"></asp:TextBox></td>
                 
            </tr>
              <tr>
                <td>Policy Start Date:</td>
                 <td><asp:TextBox ID="txtpolicystartdate" CssClass="required date" runat="server" Width="191px"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Policy End Date:</td>
                 <td><asp:TextBox ID="txtpolicyenddate"  CssClass="required date" runat="server" Width="191px"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Policy Duration:</td>
                 <td><asp:TextBox ID="txtpolicyduration" CssClass="required number" runat="server" Width="191px"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Company Id:</td>
                 <td><asp:DropDownList ID="ddlcompanyId" runat="server" AutoPostBack="True" 
                         ondatabinding="ddlcompanyId_TextChanged" 
                         onselectedindexchanged="ddlcompanyId_SelectedIndexChanged" 
                         ontextchanged="ddlcompanyId_TextChanged">
                     </asp:DropDownList></td>
            </tr>
             <tr>
                <td>Company Name:</td>
                 <td><asp:TextBox ID="txtcompanyname" CssClass="required" AutoPostBack="True" runat="server" Width="191px"></asp:TextBox></td>
            </tr>
             <tr>
                <td>Medical Id:</td>
                 <td><asp:TextBox ID="txtmedicalid" CssClass="required number" runat="server" Width="191px"></asp:TextBox></td>
            </tr>
           
             <tr>
                <td></td>
                 <td>
                     <asp:Button ID="btnAdd" runat="server" Text="Add" onclick="btnAdd_Click" />
                     <asp:Button ID="btnReset" runat="server" Text="Reset" />
                 </td>
            </tr>
             <tr>
                <td></td>
                 <td></td>
            </tr>
        </table>
    </fieldset>
    </form>
</asp:Content>
